function PublicityControl(){}PublicityControl.prototype = new GControl();

PublicityControl.prototype.initialize = function(map){

 var container=document.createElement("div");

 for(i=0;i<=8;i++){
  var imgDiv = document.createElement("div");
  imgDiv.innerHTML="<img src='/img/img.jpg' border='1'>";
  container.appendChild(imgDiv);
  GEvent.addDomListener(imgDiv, "click", function(){ alert("CLICK@IMG");});
 }		  

 map.getContainer().appendChild(container);
 return container;
} 

PublicityControl.prototype.getDefaultPosition = function() {
 return new GControlPosition(G_ANCHOR_TOP_LEFT, new GSize(5,5));
}
